<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>六西格玛知识管理</title>
<link href="<?php echo $this->baseUrl ?>/public/style/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo $this->baseUrl ?>/public/scripts/jquery.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl ?>/public/chart/js/swfobject.js"></script>
</head>
<script type="text/javascript">
swfobject.embedSWF(
"<?php echo $this->baseUrl ?>/public/chart/open-flash-chart.swf", "bars_chart",
"756", "200", "9.0.0", "expressInstall.swf",
{"data-file":"<?php echo $this->baseUrl ?>/index/bars"} );

<?php foreach($this->conf->projectType as $k=>$v){ ?>
swfobject.embedSWF(
"<?php echo $this->baseUrl ?>/public/chart/open-flash-chart.swf", "line<?php echo $k;?>_chart",
"756", "200", "9.0.0", "expressInstall.swf",
{"data-file":"<?php echo $this->baseUrl ?>/student/line?key=<?php echo $k;?>"} );
<?php }?>

swfobject.embedSWF(
"<?php echo $this->baseUrl ?>/public/chart/open-flash-chart.swf", "bars1_chart",
"756", "200", "9.0.0", "expressInstall.swf",
{"data-file":"<?php echo $this->baseUrl ?>/index/bars1"} );
</script>
<body>
<div class="mod-lss">
<div class="head-box" id="headBox">
	<div class="logo"></div>
	<div class="first-menu">
		<ul class="first-menu-ul">
        	<li><a href="<?php echo $this->baseUrl ?>/index">首页</a></li>
            <li <?php if ($this->template == 'project'): ?> class="on" <?php endif; ?>><a href="<?php echo $this->baseUrl ?>/project/index">项目管理</a></li>	
            <li <?php if ($this->template == 'student'): ?> class="on" <?php endif; ?>><a href="<?php echo $this->baseUrl ?>/student/index">学生管理</a></li> 
            <li <?php if ($this->template == 'class'): ?> class="on" <?php endif; ?>><a href="<?php echo $this->baseUrl ?>/class/index">班级管理</a></li>
            <li <?php if ($this->template == 'company'): ?> class="on" <?php endif; ?>><a href="<?php echo $this->baseUrl ?>/company/index">客户管理</a></li>
            <li <?php if ($this->template == 'course' || $this->template == 'product'): ?> class="on" <?php endif; ?>><a href="<?php echo $this->baseUrl ?>/course/list">课程管理</a></li>
            <li <?php if ($this->template == 'teacher' || $this->template == 'department'): ?> class="on" <?php endif; ?>><a href="<?php echo $this->baseUrl ?>/teacher/list">教师管理</a></li>
            <li <?php if ($this->template == 'tag' || $this->template == 'tree'): ?> class="on" <?php endif; ?>><a href="<?php echo $this->baseUrl ?>/tag/index">标签管理</a></li>
            <li <?php if ($this->template == 'system'): ?> class="on" <?php endif; ?>><a href="<?php echo $this->baseUrl ?>/system/index">系统管理</a></li>
            <li><a href="<?php echo $this->baseUrl ?>/user/logout" onclick="return confirm('您真的要退出吗？')?true:false;">退出系统</a></li>
		</ul>
	</div>
	<div class="second-menu">
		<ul class="second-menu-ul">
 <!--            <?php if ($this->template == 'project'): ?>
            <li><a href="<?php echo $this->baseUrl ?>/project/index">项目首页</a></li>
            <li class="line"></li>
            <li><a href="<?php echo $this->baseUrl ?>/project/add">项目添加</a></li>
            <li class="line"></li>
            <li><a href="<?php echo $this->baseUrl ?>/project/list">项目列表</a></li>
            <?php endif; ?>
        
            <?php if ($this->template == 'tag' || $this->template == 'tree'): ?>
            <li><a href="<?php echo $this->baseUrl ?>/tag/index">标签首页</a></li>
            <li class="line"></li>
            <li><a href="<?php echo $this->baseUrl ?>/tag/add">标签添加</a></li>
            <li class="line"></li>
            <li><a href="<?php echo $this->baseUrl ?>/tag/list">标签列表</a></li>
            <li class="line"></li>
            <li><a href="<?php echo $this->baseUrl ?>/tree/add">标签树添加</a></li>
            <li class="line"></li>
    		<li><a href="<?php echo $this->baseUrl ?>/tree/manage?tree_id=1">标签树管理</a></li>
            <li class="line"></li>
            <li><a href="<?php echo $this->baseUrl ?>/tree/list">标签树列表</a></li>
            <?php endif; ?>
           
            <?php if ($this->template == 'student'): ?>
            <li><a href="<?php echo $this->baseUrl ?>/student/index">学生首页</a></li>
            <li class="line"></li>
            <li><a href="<?php echo $this->baseUrl ?>/student/add">学生添加</a></li>
            <li class="line"></li>
            <li><a href="<?php echo $this->baseUrl ?>/student/list">学生列表</a></li>
            <?php endif; ?>
            <?php if ($this->template == 'class'): ?>
            <li><a href="<?php echo $this->baseUrl ?>/class/index">班级首页</a></li>
            <li class="line"></li>
            <li><a href="<?php echo $this->baseUrl ?>/class/add">班级添加</a></li>
            <li class="line"></li>
            <li><a href="<?php echo $this->baseUrl ?>/class/list">班级列表</a></li>
            <?php endif; ?>
            <?php if ($this->template == 'company'): ?>
            <li><a href="<?php echo $this->baseUrl ?>/company/index">客户首页</a></li>
            <li class="line"></li>
            <li><a href="<?php echo $this->baseUrl ?>/company/add">客户添加</a></li>
            <li class="line"></li>
            <li><a href="<?php echo $this->baseUrl ?>/company/list">客户列表</a></li>
            <?php endif; ?>
            <?php if ($this->template == 'course' || $this->template == 'product' || $this->template == 'material'): ?>
            <li><a href="<?php echo $this->baseUrl ?>/course/index">课程首页</a></li>
            <li class="line"></li>
            <li><a href="<?php echo $this->baseUrl ?>/course/add">课程添加</a></li>
            <li class="line"></li>
            <li><a href="<?php echo $this->baseUrl ?>/course/list">课程列表</a></li>
            <li class="line"></li>
            <li><a href="<?php echo $this->baseUrl ?>/product/add">产品添加</a></li>
            <li class="line"></li>
            <li><a href="<?php echo $this->baseUrl ?>/product/list">产品列表</a></li>
            <li class="line"></li>
            <li><a href="<?php echo $this->baseUrl ?>/material/add">教材添加</a></li>
            <li class="line"></li>
            <li><a href="<?php echo $this->baseUrl ?>/material/index">教材列表</a></li>
            <?php endif; ?>
            <?php if ($this->template == 'teacher' || $this->template == 'department'): ?>
            <li><a href="<?php echo $this->baseUrl ?>/teacher/index">教师首页</a></li>
            <li class="line"></li>
            <li><a href="<?php echo $this->baseUrl ?>/teacher/add">教师添加</a></li>
            <li class="line"></li>
            <li><a href="<?php echo $this->baseUrl ?>/teacher/list">教师列表</a></li>
            <li class="line"></li>
            <li><a href="<?php echo $this->baseUrl ?>/department/add">专业添加</a></li>
            <li class="line"></li>
            <li><a href="<?php echo $this->baseUrl ?>/department/list">专业列表</a></li>
            <?php endif; ?>
   -->          
            <?php if ($this->template == 'system'): ?>
            <!--li><a href="<?php echo $this->baseUrl ?>/system/operation/list">操作记录</a></li>
            <li class="line"></li-->
            <li><a href="<?php echo $this->baseUrl ?>/user/list">用户管理</a></li>
            <li class="line"></li>
            <li><a href="<?php echo $this->baseUrl ?>/group/list">用户分组</a></li>
            <li class="line"></li>
            <li><a href="<?php echo $this->baseUrl ?>/excel/index">批量上传</a></li>
            <?php endif; ?>
		</ul>
	</div>
</div>
	<div class="main">
		<div class="left">
			<div class="left-list clearfix">
			<div class="title"><div class="icon1"></div><a href="<?php echo $this->baseUrl ?>/project/index">项目管理</a></div>			
			<!--div class="index">学生管理</div>
			<div class="list">学生管理</div>
			<div class="list">学生管理</div>
			<div class="list">学生管理</div-->
			<div class="title"><div class="icon1"></div><a href="<?php echo $this->baseUrl ?>/student/index">学生管理</a></div>
            <div class="title"><div class="icon1"></div><a href="<?php echo $this->baseUrl ?>/class/index">班级管理</a></div>
            <div class="title"><div class="icon1"></div><a href="<?php echo $this->baseUrl ?>/company/index">客户管理</a></div>
            <div class="title"><div class="icon1"></div><a href="<?php echo $this->baseUrl ?>/course/index">课程管理</a></div>
            <div class="title"><div class="icon1"></div><a href="<?php echo $this->baseUrl ?>/teacher/index">教师管理</a></div>
            <div class="title"><div class="icon1"></div><a href="<?php echo $this->baseUrl ?>/tag/index">标签管理</a></div>	
            <div class="title"><div class="icon1"></div><a href="<?php echo $this->baseUrl ?>/system/index">系统管理</a></div>
            <div class="title"><div class="icon1"></div><a href="<?php echo $this->baseUrl ?>/user/logout" onclick="return confirm('您确定要退出吗？')?true:false;">安全退出</a></div>	
			</div>
			<div class="box">
			       <div class="box-title">LSS系统数据统计</div>
					<ul class="box-list">
						<li class="box-item">共有项目<?php echo $this->projecttotal; ?>个</li>
						<li class="box-item">共有学生<?php echo $this->studenttotal; ?>名</li>
						<li class="box-item">共有班级<?php echo $this->classtotal; ?>个</li>
						<li class="box-item">共有客户<?php echo $this->companytotal; ?>个</li>
						<li class="box-item">共有教师<?php echo $this->teachertotal; ?>名</li>				
					</ul>
				</div>
		</div>
		<div class="right">
            <div class="box">
				<div class="box-title">项目模块</div>
<div class="chart_content">
                <table width="756px" border="1" bordercolor="#0066FF" align="center">
                	<tr align="center">
                    	<th colspan="<?php echo count($this->conf->projectType)+1;?>">项目数量分布</th>
                    </tr>
                	<tr align="center">
                    	<th width="12%">年月</th>
                    <?php foreach($this->conf->projectType as $k=>$v){ ?>
                          <th ><?php echo $v;?></th>
                    <?php }?>	
                    </tr>
                    
                    <?php foreach ($this->arrProjectType as $key=>$val): ?>
                    <tr align="center">
                        <td><?php echo $val['year']; ?></td>
                        <?php foreach($this->conf->projectType as $k=>$v){ ?>
                              <td> 
	                        	<?php if ($val[$k] == 0): ?>
	                            0
	                            <?php else: ?> 
	                        	<a href="<?php echo $this->baseUrl ?>/project/typestat?year=<?php echo $val['year']; ?>&category=<?php echo $k;?>"><?php echo $val[$k]; ?></a>
	                            <?php endif; ?>
                            </td>
                        <?php }?>	
                        
                    </tr>
                    <?php endforeach; ?>
                    
                </table>
                </div>
                <div class="chart_content">
                <div id="bars_chart">
                	<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
                        codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
                        width="500"
                        height="250" id="graph-2" align="middle">
                     
                        <param name="allowScriptAccess" value="sameDomain" />
                        <param name="movie" value="<?php echo $this->baseUrl ?>/public/chart/open-flash-chart.swf" />
                        <param name="quality" value="high" />
                        <embed src="<?php echo $this->baseUrl ?>/public/chart/open-flash-chart.swf"
                               quality="high"
                               bgcolor="#FFFFFF"
                               width="500"
                               height="250"
                               name="open-flash-chart"
                               align="middle"
                               allowScriptAccess="sameDomain"
                               type="application/x-shockwave-flash"
                               pluginspage="http://www.macromedia.com/go/getflashplayer" />
                    </object>
                </div>
                </div>
			</div>
			<div class="box">
				<div class="box-title">学生模块</div>
				<?php foreach($this->conf->projectType as $k=>$v){ ?>
                <div class="chart_content">
                <div id="line<?php echo $k;?>_chart">
                	<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
                        codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
                        width="500"
                        height="250" id="graph-2" align="middle">
                     
                        <param name="allowScriptAccess" value="sameDomain" />
                        <param name="movie" value="<?php echo $this->baseUrl ?>/public/chart/open-flash-chart.swf" />
                        <param name="quality" value="high" />
                        <embed src="<?php echo $this->baseUrl ?>/public/chart/open-flash-chart.swf"
                               quality="high"
                               bgcolor="#FFFFFF"
                               width="500"
                               height="250"
                               name="open-flash-chart"
                               align="middle"
                               allowScriptAccess="sameDomain"
                               type="application/x-shockwave-flash"
                               pluginspage="http://www.macromedia.com/go/getflashplayer" />
                    </object>
                </div>
                </div>
  <?php }?> 

			</div>
			<div class="box">
				<div class="box-title">班级模块</div>
         <div class="chart_content">
                <table width="756px" border="1" bordercolor="#0066FF" align="center">
                	<tr align="center">
                    	<th colspan="5">班级数量分布</th>
                    </tr>
                	<tr align="center">
                    	     <th width="12%">年月</th>
	                    <?php foreach($this->conf->projectType as $k=>$v){ ?>
	                          <th ><?php echo $v;?></th>
	                    <?php }?>	
                    </tr>
                    
                    <?php if ($this->arrClassType): ?>
                    <?php foreach ($this->arrClassType as $key=>$val): ?>
                    <tr align="center">
                        <td><?php echo $val['year']; ?></td>
                        <?php foreach($this->conf->projectType as $k=>$v){ ?>
                              <td> 
	                        	<?php if ($val[$k] == 0): ?>
	                            0
	                            <?php else: ?> 
	                        	<a href="<?php echo $this->baseUrl ?>/class/typestat?year=<?php echo $val['year']; ?>&category=<?php echo $k;?>"><?php echo $val[$k]; ?></a>
	                            <?php endif; ?>
                            </td>
                        <?php }?>	                        
                    </tr>                    
                    <?php endforeach; ?>
                    <?php endif; ?>
                    
                </table>
                </div>
                
                <div class="chart_content">
                <div id="bars1_chart">
                	<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
                        codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
                        width="500"
                        height="250" id="graph-2" align="middle">
                     
                        <param name="allowScriptAccess" value="sameDomain" />
                        <param name="movie" value="<?php echo $this->baseUrl ?>/public/chart/open-flash-chart.swf" />
                        <param name="quality" value="high" />
                        <embed src="<?php echo $this->baseUrl ?>/public/chart/open-flash-chart.swf"
                               quality="high"
                               bgcolor="#FFFFFF"
                               width="500"
                               height="250"
                               name="open-flash-chart"
                               align="middle"
                               allowScriptAccess="sameDomain"
                               type="application/x-shockwave-flash"
                               pluginspage="http://www.macromedia.com/go/getflashplayer" />
                    </object>
                </div>
                </div>
			</div>
			<div class="box">
				<div class="box-title">客户模块</div>
 <div class="chart_content">
	                    <table width="756px" border="1" bordercolor="#0066FF" align="center">
	                            <tr align="center">
	                            <th width="5%">SN</th>
	                            <!--th width="12%">上级客户</th-->
	                            <th width="">单位名称</th>
	                            <th width="15%">代号</th>
	                            <th width="20%">简称</th>
	                            <th width="15%">地点</th>
	                        </tr>
	
	                        <?php foreach ($this->companys as $key=>$val): ?>
	                        <tr align="center">
	                            <td><?php echo $val['company_id'];?></td>
	                            <!--td><?php echo $val['pid'];?></td-->
	                            <td><a href="<?php echo $this->baseUrl ?>/company/detail?company_id=<?php echo $val['company_id']; ?>"><?php echo $val['name'];?></a></td>
	                            <td><?php echo $val['mark'];?></td>
	                            <td><?php echo $val['short_name'];?></td>
	                            <td><?php echo $val['location'];?></td>
	                        </tr>
	                        <?php endforeach; ?>
	
	                    </table>
	                    
	           </div>
			</div>
		</div>
	</div>
</div>
<!--底部-->
<?php echo $this->partial('common/footer.html') ?>
</body>
</html>